package com.fruit.bean.enumeration.fruit;

/**
 * 水果类型枚举类
 */
public enum FruitTypeEnum {
    APPLE(1L,"苹果"),
    PEAR(2L,"梨");

    private Long code;
    private String name;

    FruitTypeEnum(Long code,String name) {
        this.code = code;
        this.name = name;
    }

    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
